package zxzx.controller;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;

import zxzx.controller.utils.IdWorker;
import zxzx.controller.utils.RandomValue;

@SpringBootApplication
@EnableEurekaClient
public class ControllerApplication {

	public static void main(String[] args) {
		SpringApplication.run(ControllerApplication.class, args);
	}
	@Bean
	public IdWorker getIdWorker() {
		return new IdWorker();
	}
	@Bean
	public RandomValue getRandomValue() {
		return new RandomValue();
	}

}
